import storage from "@/utils/storage";


export default {
    saveToken(state, token) {
        state.token = token
        storage.setItem('token', token)
    },
    saveUserInfo(state, userInfo) {
        state.userInfo = userInfo
        storage.setItem('userInfo', userInfo)
    },
    saveMenuList(state, menuList) {
        state.menuList = menuList
        storage.setItem('menuList', menuList)
    },
    saveActionList(state, actionList) {
        state.actionList = actionList
        storage.setItem('actionList', actionList)
    },
}